package milkyway.hightech.comparators;

import milkyway.hightech.entry.Entry;

import java.util.Comparator;

/**
 *
 * @author michael
 */
public class SortByName implements Comparator<Entry>
{
    /**
     *
     * @param e1
     * @param e2
     * @return
     */
    @Override
    public int compare(Entry e1, Entry e2)
    {
        String s1 = e1.getReasonOfTransfer();
        String s2 = e2.getReasonOfTransfer();

        return s1.compareTo(s2);
    }
}